import { reactive } from 'vue'
import { HomeModel } from '@/api/home/homeModel'
import { store } from '@/store'
export default function useBaseHome() {
  const depts = [
    {
      value: '',
      label: '请选择'
    },
    {
      value: '1',
      label: '总部营业部'
    },
    {
      value: '2',
      label: '北京营业部'
    },
    {
      value: '646fa7f2b06e45fabdbce0ab021619d0',
      label: '无锡营业部'
    }
  ]

  const reptsModel = reactive<HomeModel>({
    deptId: '646fa7f2b06e45fabdbce0ab021619d0',
    first: 'first',
    userId: store.getters['user/getUserInfo'].userId
  })

  return {
    depts,
    reptsModel
  }
}
